Developer --> Technical Publications
PATHHardware Documentation > USB Devices > Mac OS USB DDK API Reference


Driver Plug-in Dispatch Table Structure

The driver dispatch table used to match and initialize the appropriate driver with a device is of the form shown here. This structure is filled in by the class driver.

struct USBClassDriverPluginDispatchTable {
    UInt32                          pluginVersion;
    USBDValidateHWProcPtr           validateHWProc;
    USBDInitializeDeviceProcPtr     initializeDeviceProc;
    USBDInitializeInterfaceProcPtr  initializeInterfaceProc;
    USBDFinalizeProcPtr             finalizeProc;
    USBDDriverNotifyProcPtr         notificationProc;
};

Field descriptions

pluginVersion
Version number of this plug-in for the driver plug-in dispatch table
USBDValidateHWProcPtr
Pointer to the procedure the driver uses to verify that the device is the proper hardware
USBDInitializeDeviceProcPtr
Pointer to the procedure that initializes the class driver
USBDInitializeInterfaceProcPtr
Pointer to the procedure that initializes a particular interface for the class driver
USBDFinalizeProcPtr
Pointer to the procedure that finalizes the class driver
USBDDriverNotifyProcPtr
Pointer to the procedure that passes notifications from the USB Manager to the class driver

© 1999 Apple Computer, Inc.

Previous | Back Up One Level | Next | Show Frames | Hide Frames